#pragma once
#include "graphicswindowqt.h"

#include <QtCore/QTimer>
#include <QResizeEvent>

#include <osgViewer/View>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <osgGA/TrackballManipulator>
#include <osgDB/ReadFile>

class OsgViewerWidget :
	public osgQt::GLWidget, public osgViewer::Viewer
{
	Q_OBJECT

public:
	OsgViewerWidget(QWidget *parent);
	~OsgViewerWidget(void);

	virtual void paintEvent( QPaintEvent* event );
	virtual void resizeEvent( QResizeEvent* event );

private slots:
	void openFile();


protected:
	QTimer* _timer;
};

